package cn.yunhe.service;

import cn.yunhe.model.Employee;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/22.
 */

public interface EmployeeService {

    /**
     * 根据id查找用户
     * @param id
     * @return
     */
    Employee findEmployee(int id);

    /**
     * 根据用户信息查找用户
     * @param employee
     * @return
     */
    Employee searchEmployee(Employee employee);

    /**
     * 查看所有用户
     * @return
     */
    List<Employee> searchAll();

    /**
     * 删除用户
     * @param id
     */
    void deleteEmployee(int id);

    /**
     * 修改用户信息
     * @param employee
     */
    void updateEmployee(Employee employee);

}
